#pragma once

#include "furi_hal.h"

#define RX_BUF_SIZE (320)

typedef struct Evil_PortalUart Evil_PortalUart;

void evil_portal_uart_set_handle_rx_data_cb(
    Evil_PortalUart* uart,
    void (*handle_rx_data_cb)(uint8_t* buf, size_t len, void* context));
void evil_portal_uart_tx(Evil_PortalUart* uart, uint8_t* data, size_t len);
Evil_PortalUart* evil_portal_uart_init(Evil_PortalApp* app);
void evil_portal_uart_free(Evil_PortalUart* uart);
